#ifndef __I2C_H_
#define __I2C_H_

typedef void* i2c_t;

i2c_t i2c_init();
int i2c_write(i2c_t i2c, uint8_t slave, uint8_t* msg, uint32_t len);
int i2c_read(i2c_t i2c, uint8_t slave, uint8_t* msg, uint32_t len);
void i2c_deinit(i2c_t i2c);

#endif /* __I2C_H_ */
